package com.xxl.job.executor.utils;



import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;

public class EmailsTemplate {

       public  static String readEmailTemplate(String route){
           //String path = EmailsTemplate.class.getClassLoader().getResource(route).getPath();
           File file = new File(route);

           StringBuilder result = new StringBuilder();
           try{
               BufferedReader br = new BufferedReader(new FileReader(file));
               String s = null;
               while((s = br.readLine())!=null){
                   result.append(System.lineSeparator()+s);
               }
               br.close();
           }catch(Exception e){
               e.printStackTrace();
           }
           return result.toString();
       }


}
